package com.why.dao;

import com.why.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    //判断用户是否存在
    User findUserByName(User user);

    //查询所有用户
    List<User> selectAllUser();

    //密码重置
    int updatePassword(User user);

    //修改图片
    int updateImag(User user);

}